package gazzera.node.core.messages;

import java.io.*;

public class BrowseReplyFolder extends Message
{
	public String parent;
	public String name;
	public boolean hasSubdir;
	
	
	
	public BrowseReplyFolder(String parent,  String name, boolean hasSubdir)
	{
		super();
		this.parent = parent;
		this.name = name;
		this.hasSubdir = hasSubdir;
	}

	public BrowseReplyFolder()
	{
		super();
	}

	@Override
	protected void recv(DataInputStream s) throws IOException
	{
		parent = readString(s);
		name = readString(s);
		hasSubdir = readBoolean(s);

	}

	@Override
	protected void send(DataOutputStream s) throws IOException
	{
		sendString(s, parent);
		sendString(s, name);
		sendBoolean(s, hasSubdir);

	}
}
